<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
 * Nest three time, the first stand for level 1 menu,
 * the second stand for level 2 menu,
 * the third stand for level 3 menu
 */

/*
 * Data example:
 * $oa_menu_data = array(
 *
 *    // First menu, 
 *    // key: url must be empty string.
 *    // first menu segment is first part of uri segment
 *    array('segment' => 'tech', 'name' => 'xxx', 'url' => '', 'sub_menu' => array(
 *
 *        // Second menu
 *        // key: url must be empty string.
 *        // second menu segment is second part of uri segment
 *        array('segment' => 'campus', 'name' => 'xxx', 'url' => '', 'sub_menu' => array(
 *
 *            // Third menu (page tab)
 *            // additional key: class and func
 *            // url must set
 *            // third menu segment is third part of uri segment.
 *            array('class' => 'login', 'func' => 'post', 'segment' => 'load', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *            array('class' => 'c2', 'func' => 'f2', 'segment' => 'add', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *        )),
 *        array('segment' => 'social_sales', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array(
 *            array('class' => 'c3', 'func' => 'f3', 'segment' => 'load', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *        )),
 *        array('segment' => 'statistic', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *        array('segment' => 'award', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *    )),
 *    array('segment' => 'sales', 'name' => 'xxx', 'url' => '', 'sub_menu' => array(
 *        array('segment' => 'campus', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array(
 *            array('class' => 'c4', 'func' => 'f4', 'segment' => 'east_area', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *            array('class' => 'c5', 'func' => 'f5', 'segment' => 'west_area', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *        )),
 *        array('segment' => 'social', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array(
 *            array('class' => 'c6', 'func' => 'f6', 'segment' => 'east_area', 'name' => 'xxx', 'url' => 'xxx', 'sub_menu' => array()),
 *        )),
 *    )),
 *);
 */

$oa_menu_data = array(
    array(
        'segment' => 'market',
        'name' => '营销管理',
        'url' => '',
        'sub_menu' => array(
            
            array(
                'segment' => 'pr',
                'name' => '公关营销',
                'url' => '',
                'sub_menu' => array(

                    array(
                        'class' => 'market_pr',
                        'func' => 'school_list',
                        'segment' => 'school',
                        'name' => '学校管理',
                        'url' => '/market/pr/school/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'market_pr',
                        'func' => 'teacher_contactor_list',
                        'segment' => 'contactor',
                        'name' => '联系人管理',
                        'url' => '/market/pr/contactor/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'market_pr',
                        'func' => 'working_plan',
                        'segment' => 'plan',
                        'name' => '工作计划',
                        'url' => '/market/pr/plan/list',
                        'sub_menu' => array()
                    ),
                ),
            ),

            array(
                'segment' => 'se',
                'name' => '校园推广',
                'url' => '',
                'sub_menu' => array(

                    array(
                        'class' => 'school_extend',
                        'func' => 'school_list',
                        'segment' => 'school',
                        'name' => '学校管理',
                        'url' => '/market/se/school/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'school_extend',
                        'func' => 'project_list',
                        'segment' => 'project',
                        'name' => '项目管理',
                        'url' => '/market/se/project/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'school_extend',
                        'func' => 'member_list',
                        'segment' => 'member',
                        'name' => '成员管理',
                        'url' => '/market/se/member/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'school_extend',
                        'func' => 'feedback_list',
                        'segment' => 'feedback',
                        'name' => '队长反馈',
                        'url' => '/market/se/feedback/list',
                        'sub_menu' => array()
                    ),
                )
            ),
        )
    ),

    array(
        'segment' => 'perm', 
        'name' => '权限管理', 
        'url' => '', 
        'sub_menu' => array(

            array(
                'segment' => 'user',
                'name' => '帐号管理',
                'url' => '',
                'sub_menu' => array(
                
                    array(
                        'class' => 'perm_user',
                        'func' => 'user_list',
                        'segment' => 'user',
                        'name' => '帐号管理',
                        'url' => '/perm/user/user/list',
                        'sub_menu' => array()
                    ),

                    array(
                        'class' => 'permission',
                        'func' => 'department_list',
                        'segment' => 'department',
                        'name' => '部门管理',
                        'url' => '/perm/user/department/list',
                        'sub_menu' => array()
                    ),
                )
            ),

            array(
                'segment' => 'class_func', 
                'name' => '操作', 
                'url' => '', 
                'sub_menu' => array(

                    array(
                        'class' => 'permission', 
                        'func' => 'role_display', 
                        'segment' => 'role', 
                        'name' => '角色设置', 
                        'url' => '/perm/class_func/role/list', 
                        'sub_menu' => array()
                    ),
                )
            ),

            array(
                'segment' => 'log',
                'name' => '日志',
                'url' => '',
                'sub_menu' => array(

                    array(
                        'class' => 'permission',
                        'func' => 'change_log_list',
                        'segment' => 'change',
                        'name' => '权限变更记录',
                        'url' => '/perm/log/change/list',
                        'sub_menu' => array()
                    ),
                    array(
                        'class' => 'permission',
                        'func' => 'access_log_list',
                        'segment' => 'access',
                        'name' => '访问日志记录',
                        'url' => '/perm/log/access/list',
                        'sub_menu' => array()
                    ),
                )
            ),
            
            array(
            	'segment' => 'backup',
            	'name' => '备份管理',
            	'url' => '',
            	'sub_menu' => array(

                    array( 
                        'class' => 'system',
                        'func' => 'backup_config_setup',
                        'segment' => 'backup',
                        'name' => '数据库备份管理',
                        'url' => '/sys/backup/config/setup',
                        'sub_menu' => array()
                    ),
            	)
            ),
        )
    ),
);

/* End of file: menu_data.inc.php */
/* Location ./application/tools/include/menu_data.inc.php */
